package com.gandong8.trace.tool.service;

public interface CacheService {

    <T> T getObj(String key);

    <T> T getObj(String key, Class<T> clazz);

    <T> void setObj(String key, T obj, int expiredSeconds);

    void delObj(String key);

    boolean tryLock(String key, int expiredSeconds);

    void unlock(String key);
}
